import request from '@/utils/request'
export const register = (obj) => {
  return request.post('/user/registered', obj)
}
// 封装登录请求函数
export const login = (obj) => {
  return request.post('/user/login', obj)
}
export const logout = () => {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}
export const user = () => {
  return request({
    url: '/user'
  })
}
export const favorites = () => {
  return request({
    url: '/user/favorites'
  })
}
